
#ifndef _NSTAR_SHARE_H
#define _NSTAR_SHARE_H

#define NSTAR_CRC32(buf,length) 			nstar_crc32(0,buf,length)


#define NSTAR_CRC16_0(buf,length) 	 	nstar_crc16(0,buf,length)
#define NSTAR_CRC16_FFFF(buf,length) 	nstar_crc16(0xffff,buf,length)

unsigned int nstar_crc32 (unsigned int, const unsigned char *, unsigned int);
unsigned short nstar_crc16(unsigned short crc , unsigned char *data, unsigned int size);
unsigned int nstar_crc32_ts(unsigned char *buffer,unsigned int size);

unsigned char nstar_cmm_canver_get_hex_dec_byte(unsigned char *p_dta);


void nstar_update_local_ip(void);

unsigned int oem_get_manufacture(void);
unsigned int oem_get_hard_ver(void);
unsigned int oem_get_flashoem_ver(void);
unsigned int oem_get_soft_ver(void);
unsigned int app_get_systime(void);




#endif /* _NSTAR_CRC_H */


